import request from "@pangza-club/utils/axios";

export function doLogin(validCode: string) {
    return request.post<LoginVO>('/api/user/login', {validCode}, {cancel: false});
}

export function getUserInfo() {
    return request.get<UserVO>('/api/user/user_info');
}

export function updateUser(user: UserVO) {
    return request.put('/api/user', user);
}

export function doLogout() {
    return request.post('/api/user/logout');
}